/**
 * MineAdmin is committed to providing solutions for quickly building web applications
 * Please view the LICENSE file that was distributed with this source code,
 * For the full copyright and license information.
 * Thank you very much for using MineAdmin.
 *
 * @Author X.Mo<root@imoi.cn>
 * @Link   https://github.com/mineadmin
 */
import type { MaFormItem } from '@mineadmin/form'
import hasAuth from '@/utils/permission/hasAuth.ts'
import MaDictSelect from '@/components/ma-dict-picker/ma-dict-select.vue'
import MaDictRadio from '@/components/ma-dict-picker/ma-dict-radio.vue'
import bookingStatus from '$/attractions/attraction-management/views/attractionUserBooking/data/common.tsx'
import { concat } from 'lodash-es'

export default function getFormItems(formType: 'add' | 'edit' = 'add', t: any, model: any): MaFormItem[] {
    

      return concat([
    { label: '用户id', prop: 'user_id', render: () => MaDictSelect, renderProps: { multiple: false }, itemProps: { rules: [
    { required: true, message: '请输入用户id' },
  ] } },
    { label: '预约活动信息id', prop: 'info_id', render: () => MaDictSelect, renderProps: { multiple: false }, itemProps: { rules: [
    { required: true, message: '请输入预约活动信息id' },
  ] } },
    { label: '预约日期', prop: 'booking_day', render: 'DatePicker', renderProps: { placeholder: t('form.pleaseInput', { msg: '预约日期'}) }, itemProps: { rules: [
    { required: true, message: '请输入预约日期' },
  ] }, mode: 'date', showTime: true },
    { label: '预约时间段', prop: 'booking_time', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '预约时间段'}) }, itemProps: { rules: [
    { required: true, message: '请输入预约时间段' },
  ] } },
    { label: '预约状态', prop: 'status', render: () => MaDictRadio, renderProps: { placeholder: t('form.pleaseInput', { msg: '预约状态1已预约2已取消3已使用'}), data: bookingStatus }, itemProps: { rules: [
    { required: true, message: '请输入预约状态1已预约2已取消3已使用' },
  ] } },
  ]);
}
